/*
** Copyright (C) 2009 Joshua Brent Marsh <joshua@icub3d.com>
**  
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 3 of the License, or
** (at your option) any later version.
**  
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**  
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**  
*/

/* $Id: map.h 9 2009-10-08 15:50:15Z joshua@icub3d.com $ */


#ifndef ICUB3D_MAP_H
#define ICUB3D_MAP_H 1

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "set.h"
#include "function_prototypes.h"

typedef Set Map;

#define map_create() (set_create (&comp_sspair))
#define map_destroy(map) (set_destroy (map, &dest_sspair))
#define map_size set_size
#define map_empty set_empty

int map_insert (Map *map, char *name, char *value);
int map_remove (Map *map, char *name);
char * map_get (Map *map, char *name);
int map_exists (Map *map, char *name);

int map_union (Map *dest, Map *src);

#endif /* MAP_H */
